<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
<style>
.col-left{float:left}
.col-auto{overflow:hidden;_zoom:1;_float:left;}
.title-1{border-bottom:1px solid #eee; padding-left:5px}
.f14{font-size: 14px}
.lh28{line-height: 28px}
.blue,.blue a{color:#004499}
.gray4,a.gray4{color:#999;}
.lh22{line-height: 22px}
.lh25{line-height: 25px}
</style>
<div class="wrap J_check_wrap">
  <?php include $this->getViewFile('/common/Nav') ?>
  <div class="h_a">查找</div>
  <form method="post" action="" id="searchForm">
  <div class="search_type cc mb10">
       <div class="mb10">
        关键字：
        <?php echo Form::select(array(1=>'用户名',2=>'用户UID',3=>'IP地址'),$type,'name="type"') ?>
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="<?php echo $keyword ?>" placeholder="请输入搜索内容...">
        <button class="btn">搜索</button>
      </div>
    </div>
  </form>
  <div class="mb10"> 共有 ( <b><?php echo $count; ?></b> ) 条记录</div>
  <form name="myform" action="" method="post" class="J_ajaxForm">
    <div class="table_list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <td width="50" align="center">ID</td>
            <td align="center">用户名</td>
            <td align="center">IP</td>
            <td align="center">兑换商品</td>
            <td align="center">兑换积分</td>
            <td align="center">兑换时间</td>
          </tr>
        </thead>
        <tbody>
         <?php
		 foreach($data as $rs){
		 ?>
         <tr>
            <td width="50" align="center"><?php echo $rs->id; ?></td>
            <td align="center"><?php echo $rs->username?></td>
            <td align="center"><?php echo $rs->ip?></td>
            <td align="center"><?php echo $rs->RedeemModel->title?></td>
            <td align="center"><?php echo $rs->integral ?></td>
            <td align="center"><?php echo date('Y-m-d H:i:s',$rs->record_time) ?></td>
          </tr>
          <?php
		 }
		  ?>
        </tbody>
      </table>
      <div class="p10">
        <div class="pages"><?php echo $Page;?></div>
      </div>
    </div>
  </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>